package database;

import java.io.Serializable;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.ArrayList;

public class Meagp implements Serializable {

	private static final long serialVersionUID = 5353338301054160372L;
	private DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
	private DateFormat hourFormat = new SimpleDateFormat("HH:mm");
	private Calendar cal;
	private boolean finalized;
	private ArrayList<ArrayList<Integer>> points;
	private String narrative;
	private String[] obs;
	private String therapist;
	private String[] before;
	private String[] after;
	private ArrayList<Object> additionalFiels;
	private int total;

	public Meagp() {
		cal = Calendar.getInstance();
		finalized = false;
		narrative = "";
		therapist = "";
		additionalFiels = new ArrayList<Object>();
		total = 0;
		obs = new String[14];
		before = new String[3];
		after = new String[3];

		for (int i = 0; i != obs.length; i++) {
			obs[i] = "";
		}
		for (int i = 0; i != before.length; i++) {
			before[i] = "";
		}
		for (int i = 0; i != after.length; i++) {
			after[i] = "";
		}
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public void setPoints(ArrayList<ArrayList<Integer>> points) {
		this.points = points;
	}

	public ArrayList<ArrayList<Integer>> getPoints() {
		return points;
	}

	public ArrayList<Object> getAdditionalFiels() {
		return additionalFiels;
	}

	public void setAdditionalFiels(ArrayList<Object> additionalFiels) {
		this.additionalFiels = additionalFiels;
	}

	public String[] getBefore() {
		return before;
	}

	public void setBefore(String[] before) {
		this.before = before;
	}

	public String[] getAfter() {
		return after;
	}

	public void setAfter(String[] after) {
		this.after = after;
	}

	public String getTherapist() {
		return therapist;
	}

	public void setTherapist(String therapist) {
		this.therapist = therapist;
	}

	public String getNarrative() {
		return narrative;
	}

	public void setNarrative(String narrative) {
		this.narrative = narrative;
	}

	public boolean isFinalized() {
		return finalized;
	}

	public void setFinalized(boolean finalized) {
		this.finalized = finalized;
	}

	public String[] getObs() {
		return obs;
	}

	public void setObs(String[] obs) {
		this.obs = obs;
	}

	public String getHour() {
		return "" + hourFormat.format(cal.getTime());
	}

	public String getDate() {
		return "" + dateFormat.format(cal.getTime());
	}
}
